package com.yyx.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yyx.common.R;
import com.yyx.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜品及套餐分类 服务类
 * </p>
 *
 * @author yeyinxuan
 * @since 2023-07-31
 */
public interface CategoryService extends IService<Category> {
    //    保存分类
    Boolean saveCategory(Category category);
//分页
    Page selectpage(int page, int pageSize);
//根据ID删除（判断有没有关联）
    Boolean delcetCategoryByid(Long id);

//    Boolean updateCategory(Category category);

    List listType(Category category);
}
